package io.jpress.service.provider;

import io.jboot.aop.annotation.Bean;
import io.jboot.db.model.Columns;
import io.jpress.commons.service.JPressServiceBase;
import io.jpress.model.FlowTemplate;
import io.jpress.service.FlowTemplateService;

@Bean
public class FlowTemplateServiceProvider extends JPressServiceBase<FlowTemplate> implements FlowTemplateService {

    @Override
    public FlowTemplate findFirstByProcessKey(String processKey) {
        return DAO.findFirstByColumns(Columns.safeCreate("bpmn_process_key",processKey));
    }
}